<?php

return
    [
        [
            'label'   => '内容模块',
            'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
            'match'   => '@^/article.*@',
            'visible' => true,
            'icon' => 'fa fa-pencil',
            // items可以为空，即没下级菜单
            'items'   => [
                [
                    'label' => '站点管理',
                    'url'   => ['/article/site'],
                    'match' => '@^/article/site.*@',
                    'auth'  => [
                        'route:article/site/index',
                        'route:article/site/view',
                        'route:article/site/update',
                        'route:article/site/delete',
                    ],
                ],
                [
                    'label' => '目录管理',
                    'url'   => ['/article/category'],
                    'match' => '@^/article/category.*@',
                    'auth'  => [
                        'route:article/category/index',
                        'route:article/category/save',
                        'route:article/category/manage',
                        'route:article/category/remove',
                        'route:article/category/move',
                    ],
                ],
                [
                    'label' => '文章管理',
                    'url'   => ['/article/item'],
                    'match' => '@^/article/item.*@',
                    'auth'  => [
                        'route:article/item/index',
                        'route:article/item/view',
                        'route:article/item/update',
                        'route:article/item/delete',
                    ],
                ],
            ],
        ],

        [
            'label'   => '项目管理',
            'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
            'match'   => '@^/pms.*@',
            'visible' => true,
            'icon' => 'fa fa-cog',
            // items可以为空，即没下级菜单
            'items'   => [
                [
                    'label' => '项目管理',
                    'url'   => ['/pms/project'],
                    'match' => ['@^/pms/task.*@'],
                    'auth'  => [
                        'route:pms/project/index',
                        'route:pms/project/save',
                        'route:pms/project/manage',
                        'route:pms/project/remove',
                        'route:pms/project/move',
                        'route:pms/task/index',
                    ],
                ],
            ],
        ],

        [
            'label'   => '微信中心',
            'url'     => ['#'], // 一级菜单，可以设个url，如果是两级以上菜单，url会无效
            'match'   => '@^/wechat.*@',
            'visible' => true,
            'icon' => 'fa fa-wechat',
            // items可以为空，即没下级菜单
            'items'   => [
                [
                    'label' => '公众号列表',
                    'url'   => ['/wechat/account'],
                    'match' => ['@^/wechat/account.*@'],
                    'auth'  => [
                        'module:wechat',
                    ],
                ],
                [
                    'label' => '粉丝列表',
                    'url'   => ['/wechat/fans'],
                    'match' => ['@^/wechat/fans.*@'],
                    'auth'  => [
                        'module:wechat',
                    ],
                ],
                [
                    'label' => '模块管理',
                    'url'   => ['/wechat/module'],
                    'match' => ['@^/wechat/module.*@'],
                    'auth'  => [
                        'module:wechat',
                    ],
                ],
                [
                    'label' => '微信模拟器',
                    'url'   => ['/wechat/simulator'],
                    'match' => ['@^/wechat/simulator.*@'],
                    'auth'  => [
                        'module:wechat',
                    ],
                ],
                [
                    'label' => '自定义菜单',
                    'url'   => ['/wechat/menu'],
                    'match' => ['@^/wechat/menu.*@'],
                    'auth'  => [
                        'module:wechat',
                    ],
                ],
                [
                    'label' => '素材管理',
                    'url'   => ['/wechat/media'],
                    'match' => ['@^/wechat/media.*@'],
                    'auth'  => [
                        'module:wechat',
                    ],
                ],
            ],
        ],
    ];
